# lst = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
# a = int(input("输入："))
# flag = 1
# for i in range(1, len(lst)+1):
#     for j in range(i+1, len(lst)+1):
#         if lst[i-1] + lst[j-1] == a:
#             flag = 0
#             print(f"{lst[i-1]}+{lst[j-1]}={a}")
#             print(f"第{i}个数+第{j}个数={a}")
#     if lst[i - 1] + lst[j - 1] == a:
#         break
# if flag == 1:
#     print("没有这些数满足条件")


# import json
#
# fp = open("stuinfo.txt")
# d1 = fp.read()
# fp.close()
# database = json.loads(d1)
# option = ""
# while option != "q":
#     option = input("1添加，2查看，q退出：")
#     if option == "1":
#         name = input("姓名：")
#         age = input("年龄：")
#         hobby = input("爱好：")
#         database[name] = [age, hobby]
#     elif option == "2":
#         name = input("姓名：")
#         print(database.get(name, "没有这个人"))
# d2 = json.dumps(database)
# fp = open("stuinfo.txt")
# fp.write(d2)
# fp.close()

date ={"root":{"passwd":123456, "balance":99999}}
for i, j in date.items():
    print(i)
    print(j["passwd"])
